package test128;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-12-18
 * Time: 11:12
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        try {
            for (int i=0;i<10;i++) {
                System.out.println("自定义线程正在运行第 "+i);
                Thread.sleep(1000);
            }
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }


    }
}
